From a7d88e65676dc29ac7aac07b7dd8bb77e556a4be Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 2 Oct 2007 09:35:37 +0100 Subject: [PATCH] hvm: Fix HVMOP_flush_tlbs to flush paging-mode state. From: Peter Johnston Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/hvm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 3834a86028..9b45e5195c 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -1657,7 +1657,15 @@ static int hvmop_set_pci_link_route( static int hvmop_flush_tlb_all(void) { + struct vcpu *v; + + /* Flush paging-mode soft state (e.g., va->gfn cache; PAE PDPE cache). */ + for_each_vcpu ( current->domain, v ) + paging_update_cr3(v); + + /* Flush all dirty TLBs. */ flush_tlb_mask(current->domain->domain_dirty_cpumask); + return 0; } -- 2.30.2